package com.demo.steammanagement.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 存储每个游戏的账号信息
 * @TableName game_accounts
 */
@TableName(value ="game_accounts")
@Data
public class GameAccounts implements Serializable {
    /**
     * 账号ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 所属游戏ID
     */
    private Long gameId;

    /**
     * 账号名称
     */
    private String gameAccount;

    /**
     * 账号密码
     */
    private String password;

    /**
     * 账号状态 0空闲, 1租用中, 2锁定
     */
    private Integer status;

    /**
     * 创建时间
     */
    private Date createdAt;
    /**
     * 账号令牌
     */
    private String stoken;

    /**
     * 更新时间
     */
    private Date updatedAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}